php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#200693 - 09/01/03 06:59 PM [6.6] [finished] Quick Reply
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Author: Gizzy
Original Authors: Greg Hard and LK

Date: 09.01.2003
Requirements: Valid UBB License, UBB 6.6, Wordlets Mods

Demo: Here (see below) and just about every other UBB
Download: here

Thanks: Thanks to my little buddy Weird Al
Notes: There are only minor code modifications, and also added code for quick reply in PM's.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#200694 - 09/01/03 11:31 PM Re: [6.6] [finished] Quick Reply
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Thanks gizzy, one of my favorites laugh
_________________________
- Allen wavey
- What Drives You?

Top
#200695 - 09/01/03 11:46 PM Re: [6.6] [finished] Quick Reply
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
smile ... I won't be doin that many ports this coming version due to me not understanding the cp and me starting a new job tomorrow...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#200696 - 09/25/03 11:15 PM Re: [6.6] [finished] Quick Reply
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
i've redone this hack at least ten times and for some reason users can't change their choice in their profile. Mine is set to yes and I see the box. If I change it to no, it rights a 0 to line 62 (field 61 I believe) of my member file but I still see the box. When I re-enter my profile it says yes again, and if I save my profile it does in fact write a 1 to that line. I still see the box no matter what. One of the other members has the opposite problem, his is always set to no.

Any ideas?
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#200697 - 09/26/03 12:00 AM Re: [6.6] [finished] Quick Reply
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
Well, I got it to save the preference in the profile. I removed this from public_edit_profile.pl

Code:
my $quickreply_yes = $user_profile[61] ne '0' ? ' checked="checked"' : '';
my $quickreply_no = $user_profile[61] eq '0' ? ' checked="checked"' : '';
Then I added this to ubb_profile.cgi

Code:
# calibrate quick reply
if ($user_profile[61] eq '1') { $quickreply_yes = 'checked="checked"'; $quickreply_no = ''; }
else { $quickreply_no = 'checked="checked"'; $quickreply_yes = ''; }
after

Code:
# calibrate mass mail
if ($user_profile[14] eq 'yes') { $mm_yes = 'checked="checked"'; $mm_no = ''; }
else { $mm_no = 'checked="checked"'; $mm_yes = ''; }
The bos is still ignoring the choice though. It disappears if I log out though.
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#200698 - 09/26/03 12:06 AM Re: [6.6] [finished] Quick Reply
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
try the obvious choice smile


change
Code:
my $quickreply_yes = $user_profile[61] ne '0' ? ' checked="checked"' : '';
my $quickreply_no = $user_profile[61] eq '0' ? ' checked="checked"' : '';
to

Code:
if($user_profile[61] = 1){
	my $quickreply_no = '';
	my $quickreply_yes = qq( checked="checked");
} else {
	my $quickreply_no = qq( checked="checked");
	my $quickreply_yes = '';
}
that worked for me

Top
#200699 - 09/26/03 12:30 AM Re: [6.6] [finished] Quick Reply
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
When I did that I get neither radio button *lit*.
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#200700 - 09/26/03 09:53 AM Re: [6.6] [finished] Quick Reply
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
then instead of = 1, try eq '1', etc

It doesn't work the same way for some people

Top
#200701 - 09/26/03 11:23 AM Re: [6.6] [finished] Quick Reply
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Actually =1 doesn't work for anyone, it has to be with == tipsy
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#200702 - 09/26/03 11:27 AM Re: [6.6] [finished] Quick Reply
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
tell me if it works and i'll update the text :x...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#200703 - 09/26/03 05:29 PM Re: [6.6] [finished] Quick Reply
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Quote:
quote:
Originally posted by LK:
Actually =1 doesn't work for anyone, it has to be with == tipsy
frown I've been coding for 7 years, I can't believe I did that

Top
#200704 - 10/02/03 09:04 PM Re: [6.6] [finished] Quick Reply
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I found a bug smile

If you're in a private forum, and have permission to reply, but not make topics, the preview post function tells you you don't have permission

Top
#200705 - 10/03/03 11:19 AM Re: [6.6] [finished] Quick Reply
Saturn_Kindred Offline
Member

Registered: 08/17/01
Posts: 50
Quote:
quote:
Originally posted by Weird Al:
try the obvious choice smile


change
Code:
my $quickreply_yes = $user_profile[61] ne '0' ? ' checked="checked"' : '';
my $quickreply_no = $user_profile[61] eq '0' ? ' checked="checked"' : '';
to

Code:
if($user_profile[61] = 1){
	my $quickreply_no = '';
	my $quickreply_yes = qq( checked="checked");
} else {
	my $quickreply_no = qq( checked="checked");
	my $quickreply_yes = '';
}
that worked for me
I tried this fix and it still doesn't take the quick reply out if they select no.

Top
#200706 - 10/03/03 11:28 AM Re: [6.6] [finished] Quick Reply
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
That wouldn't be the code I posted, that would be in the cookies. Look over the lines that resemble
Code:
-value   => [$user_profile[0], md5_hex($new_password), $public_name, $daysprune, $in{u}, $pntf_hidden, $avhide, $new_date_format, $new_time_format, $tzoffset, "", "", "", $quickreply],
and if you've applied any other hacks that change it, just make sure that quick reply is the 4th one after $tzoffset. Personlly, I just don't let people disable it, then all I have to do is hide it to Anonymous users

Top
#200707 - 10/03/03 04:51 PM Re: [6.6] [finished] Quick Reply
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
I've verified the hack numerous times, and also verified the cookie code you posted and it still disregards the profile choice. It disappears for users that aren't logged in so I count it as a win.
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#200708 - 10/06/03 05:25 PM Re: [6.6] [finished] Quick Reply
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
I can't re-create the error with users not being able to disable the QR, or the one where it's viewable to everyone when not logged in (on 6.6).

As for the private topics where you can reply in the first place, i'll look at it a little later.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#200709 - 10/06/03 05:42 PM Re: [6.6] [finished] Quick Reply
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
xpert, make sure the user who chose to hide quickreply has set a timezone, etc.. also don't forget to also replace "= 1" with "== 1".
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#200710 - 10/07/03 12:16 AM Re: [6.6] [finished] Quick Reply
Trekkie Offline
Junior Member

Registered: 05/17/01
Posts: 26
Loc: Houston, Tx
Now about making QuickReply CSS savvy...
_________________________
-Trekkie
To point, click and boldly go...

Top
#200711 - 10/13/03 08:33 PM Re: [6.6] [finished] Quick Reply
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
It seems that the preview button returns a permissions error in forums where the members are allowed to reply but not start threads. The error is;

Quote:
quote:

FYI You do not have permission to enter this area.
Edit: the error can be duplicated in the announcements forum here.
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#200712 - 10/13/03 10:11 PM Re: [6.6] [finished] Quick Reply
Charles Capps Offline
Admin Emeritus

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
That might be a problem in the preview code itself.
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
Page 1 of 3 1 2 3 >



Moderator:  Charles, Gizmo 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks